﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FaceMessanger.Web
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            

//            DigitalAmeleEntities db = new DigitalAmeleEntities();
//            List<Friends> friendsList = new List<Friends>();
//            List<short> friendTypesList = new List<short>();
//            //friendsList = (from d in db.Friends
//            //             //  where d.MyMemberId == Guid.NewGuid()
//            //               select d).ToList<Friends>();

//            foreach (var item in friendsList)
//            {
//                if (!friendTypesList.Contains(item.FriendTypeId))
//                {
//                    friendTypesList.Add(item.FriendTypeId);
//                }
//            }

//            string html = "";
//            foreach (var item in friendTypesList)
//            {
              
//                html+=" <li><span>"+db.FriendTypes.First(q=>q.Id==item).Name+"</span></li>";

//                List<Friends> friendListOfType = new List<Friends>();
//                friendListOfType = (from d in friendsList
//                                    where d.FriendTypeId == item
//                                    select d).ToList<Friends>();
//                foreach (var item1 in friendListOfType)
//                {
//                    Members friends= db.Members.First<Members>(q=>q.Id==item1.FriendMemberId);
//                    html += @"<li><a href=""#"">
//                            <img src=""chat-thumb.gif"" alt="""" />
//                            "+friends.FirstName+" "+friends.LastName+"</a></li>";
//                }

//            }

            

        }
    }
}
